<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mariadb</Name>
        <Homepage>https://mariadb.org</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>MariaDB is a drop-in replacement for MySQL</Summary>
        <Description>MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server.</Description>
        <Archive sha1sum="f9ccaa9881b98eeef68f4dbcf5ab9653c903819f" type="targz">http://mirrors.syringanetworks.net/mariadb/mariadb-10.1.21/source/mariadb-10.1.21.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>libevent-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <Dependency>unixODBC-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>mariadb-lib</Name>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>The shared libraries required for MariaDB clients</Summary>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-lib</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql_config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so.18.0.0</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so.18.0.0</Path>
            <Path fileType="library">/usr/lib/libmysqld.a</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.a</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.a</Path>
            <Path fileType="library">/usr/lib/libmysqld.so</Path>
            <Path fileType="library">/usr/lib/libmysqld.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlservices.a</Path>
            <Path fileType="library">/usr/bin/mysqld_safe_helper</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-client</Name>
        <IsA>app:console</IsA>
        <Summary>MariaDB client programs</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-client</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql</Path>
            <Path fileType="executable">/usr/bin/mysqladmin</Path>
            <Path fileType="executable">/usr/bin/mysqlcheck</Path>
            <Path fileType="executable">/usr/bin/mysqldump</Path>
            <Path fileType="executable">/usr/bin/mysqlimport</Path>
            <Path fileType="executable">/usr/bin/mysqlshow</Path>
            <Path fileType="executable">/usr/bin/mysqlslap</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-server</Name>
        <IsA>service</IsA>
        <Summary>The MariaDB server and related files</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency version="current">mariadb-client</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-server</Package>
        </Replaces>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin/aria_chk</Path>
            <Path fileType="executable">/usr/bin/aria_dump_log</Path>
            <Path fileType="executable">/usr/bin/aria_ftdump</Path>
            <Path fileType="executable">/usr/bin/aria_pack</Path>
            <Path fileType="executable">/usr/bin/aria_read_log</Path>
            <Path fileType="executable">/usr/bin/innochecksum</Path>
            <Path fileType="executable">/usr/bin/msql2mysql</Path>
            <Path fileType="executable">/usr/bin/my_print_defaults</Path>
            <Path fileType="executable">/usr/bin/myisam_ftdump</Path>
            <Path fileType="executable">/usr/bin/myisamchk</Path>
            <Path fileType="executable">/usr/bin/myisamlog</Path>
            <Path fileType="executable">/usr/bin/myisampack</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test</Path>
            <Path fileType="executable">/usr/bin/mysql_convert_table_format</Path>
            <Path fileType="executable">/usr/bin/mysql_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test_embedded</Path>
            <Path fileType="executable">/usr/bin/mysqltest_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_find_rows</Path>
            <Path fileType="executable">/usr/bin/mysql_fix_extensions</Path>
            <Path fileType="executable">/usr/bin/mysql_install_db</Path>
            <Path fileType="executable">/usr/bin/mysql_plugin</Path>
            <Path fileType="executable">/usr/bin/mysql_secure_installation</Path>
            <Path fileType="executable">/usr/bin/mysql_setpermission</Path>
            <Path fileType="executable">/usr/bin/mysql_tzinfo_to_sql</Path>
            <Path fileType="executable">/usr/bin/mysql_upgrade</Path>
            <Path fileType="executable">/usr/bin/mysql_waitpid</Path>
            <Path fileType="executable">/usr/bin/mysql_zap</Path>
            <Path fileType="executable">/usr/bin/mysqlaccess</Path>
            <Path fileType="executable">/usr/bin/mysqlbinlog</Path>
            <Path fileType="executable">/usr/bin/mysqlbug</Path>
            <Path fileType="executable">/usr/bin/mysqld</Path>
            <Path fileType="executable">/usr/bin/mysqld-post</Path>
            <Path fileType="executable">/usr/bin/mysqld_multi</Path>
            <Path fileType="executable">/usr/bin/mysqld_safe</Path>
            <Path fileType="executable">/usr/bin/mysqldumpslow</Path>
            <Path fileType="executable">/usr/bin/mysqlhotcopy</Path>
            <Path fileType="executable">/usr/bin/mysqltest</Path>
            <Path fileType="executable">/usr/bin/perror</Path>
            <Path fileType="executable">/usr/bin/replace</Path>
            <Path fileType="executable">/usr/bin/resolve_stack_dump</Path>
            <Path fileType="executable">/usr/bin/resolveip</Path>
            <Path fileType="executable">/usr/bin/tokuft_logprint</Path>
            <Path fileType="executable">/usr/bin/tokuftdump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_common</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_mysqldump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_rsync</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup-v2</Path>
            <Path fileType="executable">/usr/bin/mytop</Path>
            <Path fileType="library">/usr/lib/mysql/plugin</Path>
            <Path fileType="data">/usr/share/mysql</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/mariadb.conf</Path>
            <Path fileType="data">/run/mysqld</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/mysql/my.cnf">my.cnf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/mariadb.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>mariadb-man-pages</Name>
        <IsA>data</IsA>
        <Summary>Man pages for MariaDB server and client</Summary>
        <Replaces>
            <Package>mysql-man-pages</Package>
        </Replaces>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-09</Date>
            <Version>10.1.21</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>10.1.10</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-24</Date>
            <Version>10.1.10</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
